package com.iscas.tech.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.geekidea.springbootplus.framework.common.entity.BaseEntity;
import io.geekidea.springbootplus.framework.validator.groups.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 专家信息表
 *
 * @author yangyi
 * @since 2020-10-26
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "AtExperts对象")
public class AtExperts extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "id不能为空", groups = {Update.class})
    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @NotBlank(message = "专家姓名不能为空")
    @ApiModelProperty("专家姓名")
    private String epName;

    @ApiModelProperty("毕业院校")
    private String epGschool;

    @ApiModelProperty("毕业时间")
    private String gradTime;

    @ApiModelProperty("职称")
    private String epTpost;

    @ApiModelProperty("职业资格")
    private String epQualt;

    @ApiModelProperty("工作单位")
    private String epOrgzt;

    @ApiModelProperty("工作单位类型（如：高等院校、企业、科研单位、事业单位等）")
    private String orgType;

    @ApiModelProperty("专家简介")
    private String epDetail;

    @ApiModelProperty("主要成就")
    private String epAcvmt;

    @ApiModelProperty("研究方向")
    private String epDirct;

    @NotNull(message = "发布人id（对应表3的人员id）不能为空")
    @ApiModelProperty("发布人id（对应表3的人员id）")
    private Integer sdResid;

    @NotNull(message = "发布时间不能为空")
    @ApiModelProperty("发布时间")
    private Date sdRestime;

    @NotNull(message = "是否审核（0:未审核(默认) 1:已审核）不能为空")
    @ApiModelProperty("是否审核（0:未审核(默认) 1:已审核）")
    private Integer adStatus;

    @ApiModelProperty("专家照片")
    private String epPic;

    @NotNull(message = "专家类型（1:专家信息 2:科技人才）不能为空")
    @ApiModelProperty("专家类型（1:专家信息 2:科技人才）")
    private Integer epType;

    @ApiModelProperty("删除状态（1存在，0刪除）")
    private Integer delstatus;

    @ApiModelProperty("创建人")
    private Integer createtitle;

    @ApiModelProperty("提交交易创建时间")
    private Date createtime;

}
